//
//  CustomPickerView.h
//  DefendHealth
//
//  Created by 吾诺瀚卓 on 17/2/25.
//  Copyright © 2017年 iMacOne. All rights reserved.
//

#import <UIKit/UIKit.h>

@class MyPickerView;
//数据源方法
@protocol UIMyPickerDataSource <NSObject>
@required
- (NSInteger)numberOfComponentsInMyPickerView:(nonnull MyPickerView *)myPickerView;//包含列数
@required
- (NSInteger)myPickerView:(nonnull MyPickerView *)myPickerView numberOfRowInComponent:(NSInteger)component;//某一列的行数
@required
- (nullable NSString *)myPickerView:(nonnull MyPickerView *)myPickerView titleForRow:(NSInteger)row forComponent:(NSInteger)component;
@end

//代理方法
@protocol UIMyPickerDelegate <NSObject>
- (void)myPickerView:(nonnull MyPickerView *)myPickerView titleForDidSelectRow:(NSInteger)row forComponent:(NSInteger)component;
-(void)cancel;
-(void)save;
@end

@interface CustomPickerView : UIView

@property (nonatomic,strong)NSMutableArray *_Nonnull ScrolleViewArray;
@property (nonatomic,assign)_Nonnull id <UIMyPickerDataSource> dataSource;
@property (nonatomic,assign)_Nonnull id <UIMyPickerDelegate> delegate;
@end
